package com.mall.huohuo.admin.controller;

import com.mall.huohuo.exception.BusinessException;
import com.mall.huohuo.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestExampleController {

    @GetMapping("/exception")
    public Result testException() {
        throw new BusinessException("error",2101);
    }

}
